/*
  * Repository Search Script Iframe JScript.
  */

var height;
var width;

function onLoad() 
{
	var params = window.location.search.substring(1).split('&');

	for(var i=0,l=params.length;i<l;++i) 
	{
		var parts = params[i].split('=');
		switch( parts[0] ) 
		{
			case 'height':
				height = unescape(parts[1]);
				break;
			case 'width':
				width = unescape(parts[1]);
				break;
		}
	}
        if(typeof(parseInt(height))=='number' && typeof(parseInt(width))=='number') 
	{
		window.top.updateIFrame(height,width);
        }
}

function testMsg() {
	var params = window.location.search.substring(1).split('&');

	for(var i=0,l=params.length;i<l;++i) 
	{
		var parts = params[i].split('=');
		switch( parts[0] ) 
		{
			case 'height':
				height = unescape(parts[1]);
				break;
			case 'width':
				width = unescape(parts[1]);
				break;
		}
	}
    if(typeof(parseInt(height))=='number' && typeof(parseInt(width))=='number') 
	alert('height is '+height+' width is '+width);	
}

function showMessage() {
	window.top.alertMsg();
}

window.onload = onLoad;